<template>
  <el-card class="page-tools">
    <el-row type="flex" justify="space=between">
      <el-col>
        <div v-if="showBefore" class="before">
          <i class="el-icon-info" />
          <span>
            <slot name="before" />
          </span>
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang="scss" scoped>
.page-tools{
    .before{
        display: inline-block;
        padding: 10px 15px;
        border-radius: 5px;
        background-color:#ecf7fc ;
        border: 1px solid #569cff;
        i{
            color: #53a2f2;
            margin-right: 5px;
        }
        span{
            font-size: 14px;
        }
    }
}
</style>
